package com.yc.so.view.impl;

import com.yc.so.bin.SoBoundsConfigurator;
import com.yc.so.utils.BoundsCalculationUtil;
import com.yc.so.view.SoView;
import javafx.scene.Node;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.Pane;

public class MainPaneView implements SoView {
    public AnchorPane getView() {
        return organizationView();
    }

    /**
     * 视图组织
     * @return
     */
    private AnchorPane organizationView(){
        SoBoundsConfigurator bounds = BoundsCalculationUtil.getMainPanelBounds();
        AnchorPane anchorPane = getAnchorPane(bounds);
        return anchorPane;
    }

    private AnchorPane getAnchorPane(SoBoundsConfigurator bounds) {
        AnchorPane anchorPane=new AnchorPane();
        anchorPane.setOpacity(0.8);
        return anchorPane;
    }
}
